import {use} from 'echarts/core'
import {GridComponent, LegendComponent, TitleComponent, TooltipComponent} from 'echarts/components'
import {BarChart, GaugeChart, LineChart, PieChart} from 'echarts/charts'
import {CanvasRenderer} from 'echarts/renderers'


/**
 * created by yangtong on 2025/7/13 下午9:11
 */
export function useChart() {

    use([
        TitleComponent,
        TooltipComponent,
        LegendComponent,
        GridComponent,
        LineChart,
        BarChart,
        PieChart,
        GaugeChart,
        CanvasRenderer
    ])

    return {}
}